package view;

import javax.faces.event.ActionEvent;

import oracle.adf.view.rich.component.rich.input.RichInputRangeSlider;
import oracle.adf.view.rich.model.NumberRange;

public class ControlsSliderMB {
    private RichInputRangeSlider rangeSlider;

    public ControlsSliderMB() {
    }

    public void setRangeSlider(RichInputRangeSlider rangeSlider) {
        this.rangeSlider = rangeSlider;
    }

    public RichInputRangeSlider getRangeSlider() {
        return rangeSlider;
    }

    public void getSlider(ActionEvent actionEvent) {
        // Add event code here...
        System.out.println(rangeSlider.getValue().getClass().getName());
        System.out.println(rangeSlider.getValue());
    }

    public void setSlider(ActionEvent actionEvent) {
        // Add event code here...
        NumberRange nr = new NumberRange(2,7);
        rangeSlider.setValue(nr);
        
    }
}
